<template>
	<view>
		<view class="result_comparison">
			<view class="resule_tit" style="display: flex;">
				<view class="title">
					创作结果
				</view>
			</view>
			<view class="results_textarea">
				<text>{{compareResults}}</text>
			</view>
			<view class="creative_results_btn" @click="copyResults">
				<u-button text="复制结果" color="#5490FF" size="large"></u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
                    compareResults:''
			};
		},
		onLoad(option) {
			let that = this
			that.compareResults = option.creativeResults
		},
		onShow() {
			
		},
		methods:{
			copyResults() {
				uni.setClipboardData({
					data: this.compareResults,
					showToast: true
				});
			},
		}
	}
</script>

<style lang="scss">
	page {
		background: #F5F5F5;
	}
	.result_comparison {
		margin-top: 31rpx;
		margin-bottom: 20rpx;
		width: 696rpx;
		background: #FFFFFF;
		border-radius: 18rpx;
		margin-left: 25rpx;

		.resule_tit {
			.title {
				width: 250rpx;
				height: 32rpx;
				font-size: 34rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #5490FF;
				margin-left: 270rpx;
				margin-top: 40rpx;
			}
		}

		.results_textarea {
			padding: 0 20rpx 20rpx 20rpx;
			margin-top: 60rpx;
		}
	}


	.creative_results {
		padding-bottom: 30rpx;
		margin-top: 20rpx;
		width: 696rpx;
		background: #FFFFFF;
		border-radius: 18rpx;
		box-sizing: border-box;
	}

	.creative_results_btn {
		margin: auto;
		margin-top: 30rpx;
		width: 333rpx;
		height: 120rpx;
	}
</style>